﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FoneBuddy.LinqModel.Data;

namespace FoneBuddy.LinqModel
{
 public partial   class Camera
    {
      #region Variable Declaration
        private IDataRepository _dataObject;
        #endregion

        public Camera(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public List<Camera> GetAllCamera()
        {
            return _dataObject.GetAllCamera();
        }
        public void Create()
        {
            _dataObject.CreateCamera(this);
        }
        public void Delete()
        {
            _dataObject.DeleteCamera(this);
        }
        public void Update()
        {
            _dataObject.UpdateCamera(this);
        }
        public void GetCameraById()
        {
            _dataObject.GetCameraById(this);
        }
        public void GetCameraByName()
        {
            _dataObject.GetCameraByName(this);
        }
    }
}
